<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>JavaScript 字符串模板</title>
</head>
<body>
<h2>多行字符串</h2>
<p>模板字面量允许多行字符串：</p>

<p id="demo"></p>
<script>
  let text=
          `The quick
          brown fox
          jumps over
          the lazy dog`;
  document.getElementById("demo").innerHTML=text;
</script>
</body>
</html>

<!--输出结果：The quick brown fox jumps over the lazy dog-->